<?php
###############################################################################################
#         Copyright (c) 2012 Ellucid Studios. 
#         This software is the proprietary information of  Ellucid Studios
#         All Right Reserved.
#         Repository path:    $HeadURL: http://ellucid-studios.googlecode.com/svn/trunk/var/www/mydroid/wiki/mediawiki/LocalSettings.php $
#         Last committed:      $Revision: 37 $
#         Last changed by:       $Author: davidjmorin@gmail.com $
#         Last changed date   :    $Date: 2014-12-07 03:26:59 +0000 (Sun, 07 Dec 2014) $ 
#         ID:                                   $Id: LocalSettings.php 37 2014-12-07 03:26:59Z davidjmorin@gmail.com $
################################################################################################ 
if ( !defined( 'MEDIAWIKI' ) ) {
	exit;
}

## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;

$wgSitename = "My Droid Central";
$wgMetaNamespace = "My_Droid_Central";

## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptExtension = ".php";

## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath       = "";
$wgScript           = "$wgScriptPath/index.php";
$wgRedirectScript   = "$wgScriptPath/redirect.php";
$wgArticlePath      = "$wgScriptPath/$1";


## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://mydroidcentral.com";

## The relative URL path to the skins directory
$wgStylePath = "$wgScriptPath/skins";

## The relative URL path to the logo.  Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "$wgStylePath/common/images/mydroidcentral_wiki.png";

## UPO means: this is also a user preference option

$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO

$wgEmergencyContact = "admin@mydroidcentral.com";
$wgPasswordSender = "admin@mydroidcentral.com";

$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;

## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "mdc_wiki";
$wgDBuser = "root";
$wgDBpassword = "Redsox04!";

# MySQL specific settings
$wgDBprefix = "wiki_";

# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

# Experimental charset support for MySQL 5.0.
$wgDBmysql5 = false;

## Shared memory settings
$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = array();

## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
#$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";

# InstantCommons allows wiki to use images from http://commons.wikimedia.org
$wgUseInstantCommons = true;

## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "en_US.utf8";

## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
#$wgHashedUploadDirectory = false;

## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";

# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "en";

$wgSecretKey = "b7666c87a65ccf31d48f3797697ba2b5b8de9819f518fb9ea18755d2501f9b0f";

# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "81919bc84f99e9e0";

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'cologneblue', 'monobook', 'vector':
$wgDefaultSkin = "monobook";

## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";

# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";


# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
require_once "$IP/extensions/Cite/Cite.php";
require_once "$IP/extensions/ConfirmEdit/ConfirmEdit.php";
require_once "$IP/extensions/Gadgets/Gadgets.php";
require_once "$IP/extensions/ImageMap/ImageMap.php";
require_once "$IP/extensions/InputBox/InputBox.php";
require_once "$IP/extensions/Interwiki/Interwiki.php";
require_once "$IP/extensions/LocalisationUpdate/LocalisationUpdate.php";
require_once "$IP/extensions/Nuke/Nuke.php";
require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";
require_once "$IP/extensions/Poem/Poem.php";
require_once "$IP/extensions/Renameuser/Renameuser.php";
require_once "$IP/extensions/SpamBlacklist/SpamBlacklist.php";
require_once "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php";
require_once "$IP/extensions/TitleBlacklist/TitleBlacklist.php";
require_once "$IP/extensions/WikiEditor/WikiEditor.php";


# End of automatically generated settings.
# Add more configuration options below.

# End of automatically generated settings.
# Add more configuration options below.
require_once "$IP/extensions/Scribunto/Scribunto.php";
$wgScribuntoDefaultEngine = 'luastandalone';
$wgScribuntoEngineConf['luastandalone']['errorFile'] = "/var/www/error.log";

require_once "$IP/extensions/RecentPages/RecentPages.php";
$wgRecentPagesDefaultLimit = 6;
$wgRecentPagesMaxAttempts = 1000;
$wgRecentPagesDefaultMinimumLength = 600;

require_once( "$IP/extensions/IncludeArticle/IncludeArticle.php" );
#$wgParserConf = array ('class'=>'Parser_OldPP');
################
# Enables use of WikiEditor by default but still allow users to disable it in preferences
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
 
# Displays the Preview and Changes tabs
$wgDefaultUserOptions['wikieditor-preview'] = 1;
 



require_once("$IP/extensions/GooglePlusOne/GooglePlusOne.php");
# The following defaults to [[Manual:$wgServer]] concatnated with [[Manual:$wgScriptPath]]
$googlePlusOneSiteUrl = "http://mydroidcentral.com";
# The following defaults to "https://apis.google.com/js/plusone.js", but you can override it here
#$googlePlusOneJS = "your local copy";


require_once "$IP/extensions/MobileFrontend/MobileFrontend.php";
$wgMFAutodetectMobileView = true;

require_once "$IP/extensions/wiki-seo-master/WikiSEO.php";

require_once "$IP/extensions/MobileApp/MobileApp.php";

require_once "$IP/extensions/EmbedVideo/EmbedVideo.php";
enableSemantics( 'mydroidcentral.com' );

$wgGroupPermissions['*']['edit'] = false;

# Anonymous users can't create pages
$wgGroupPermissions['*']['createpage'] = false;
 require_once("$IP/extensions/TwitterFBLike/TwitterFBLike.php");
 require_once("$IP/extensions/FacebookLikeButton/FacebookLikeButton.php");

# Only users with accounts four days old or older can create pages
# Requires MW 1.6 or higher.
$wgGroupPermissions['*'            ]['createpage'] = false;
$wgGroupPermissions['user'         ]['createpage'] = false;
$wgGroupPermissions['autoconfirmed']['createpage'] = true;
#$wgAutoConfirmAge = 86400 * 4; # Four days times 86400 seconds/day


$wgGroupPermissions['*']['edit'] = false;

$wgSMTP = array(
 'host'     => "mail.mydroidcentral.com", // could also be an IP address. Where the SMTP server is located
 'IDHost'   => "mydroidcentral.com",      // Generally this will be the domain name of your website (aka mywiki.org)
 'port'     => 25,                 // Port to use when connecting to the SMTP server
 'auth'     => true,               // Should we use SMTP authentication (true or false)
 'username' => "admin",     // Username to use for SMTP authentication (if being used)
 'password' => "Redsox04!"       // Password to use for SMTP authentication (if being used)
);



require_once "$IP/extensions/Mantle/Mantle.php";

################################ GOOGLE API CLIENT ###############################
 require_once "$IP/extensions/GoogleAPIClient/GoogleAPIClient.php";
 require_once "$IP/extensions/GoogleLogin/GoogleLogin.php";
 $wgGLSecret = 'tE2_RuZdLZoaFu4GW7RLGpQU';
$wgGLAppId = '586978574757-35l41chl0dv6o84bb0k4qpjam1pm4ban.apps.googleusercontent.com';
$wgWhitelistRead = array( 'Special:GoogleLogin' );




####################################  Visual Editor ##############################
